package com.qyhl.webtv.module_news.news.information.program;


import com.qyhl.webtv.commonlib.entity.news.NewsBean;
import com.qyhl.webtv.commonlib.entity.news.SectionBean;

import java.util.List;

/**
 * Created by qyhl on 2017/11/29.
 */

public interface ProgramContract {
    interface ProgramView {
        void setSection(List<SectionBean> beanList);

        void setNews(List<NewsBean> beanList);

        void newsError();

        void setEmpty(String msg);

        void setError(String msg);

        void setNetError(String msg);
    }

    interface ProgramPresenter {
        void getSection(String menuId, String type);

        void getHotNews(String section);

        void setSection(List<SectionBean> beanList);

        void setError(int code, String msg);

        void setNews(List<NewsBean> beanList);

        void newsError();


    }

    interface ProgramModel {
        void getSection(String menuId, String type);


        void getHotNews(String section);
    }
}
